package com.ronan.imserver.processor.business;

import com.ronan.common.entity.business.GameValue;
import com.ronan.imserver.rpc.RpcWebService;
import com.ronan.imserver.utils.SpringBeanFactory;
import lombok.extern.slf4j.Slf4j;

/**
 * FileName    : com.ronan.imserver.processor.business
 * Description :
 *
 * @author : ronan
 * @version : 1.0
 * Create Date : 2021/3/17 14:53
 **/
@Slf4j
public class GameValueProcessor implements BusProcessor<GameValue> {

    /**
     * 处理器
     *
     * @param accid
     * @param gameValue
     */
    @Override
    public void process(String accid, GameValue gameValue) {
        RpcWebService webService = SpringBeanFactory.getBean(RpcWebService.class);
        log.info("[GameValue处理器]: accid : {}, GameValue: {}",accid,gameValue.toString());
        // 操作数据库
        // AddGVReq req = new AddGVReq();
        // req.setAccid(accid);
        // req.setMood(gameValue.getMood());
        // req.setWear(gameValue.getWear());
        // req.setWhite(gameValue.getWhite());
        // webService.addGV(req);
    }
}
